/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author Hendro Steven
 */
@Entity
public class Departemen implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String kodeDepartemen;
    private String namaDepartemen;
    @ManyToOne
    private Fakultas fakultas;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

   

    @Override
    public String toString() {
        return "("+this.getKodeDepartemen()+") "+this.getNamaDepartemen();
    }

    /**
     * @return the kodeDepartemen
     */
    public String getKodeDepartemen() {
        return kodeDepartemen;
    }

    /**
     * @param kodeDepartemen the kodeDepartemen to set
     */
    public void setKodeDepartemen(String kodeDepartemen) {
        this.kodeDepartemen = kodeDepartemen;
    }

    /**
     * @return the namaDepartemen
     */
    public String getNamaDepartemen() {
        return namaDepartemen;
    }

    /**
     * @param namaDepartemen the namaDepartemen to set
     */
    public void setNamaDepartemen(String namaDepartemen) {
        this.namaDepartemen = namaDepartemen;
    }

    /**
     * @return the fakultas
     */
    public Fakultas getFakultas() {
        return fakultas;
    }

    /**
     * @param fakultas the fakultas to set
     */
    public void setFakultas(Fakultas fakultas) {
        this.fakultas = fakultas;
    }
    
}
